package com.tzbank.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_page_field")
@Table(appliesTo = "mb_page_field", comment = "页面分区内的字段个数（结构表，不含数据）")
public class PageField extends BaseModel implements Serializable {

	private static final long serialVersionUID = -2349129534284115794L;

	/**
	 * 页面分区ID
	 */
	@ApiModelProperty(value = "页面分区ID")
	@Column(name = "page_id", columnDefinition = "varchar(50)  NOT NULL COMMENT '页面分区ID'")
	private String pageId;

	/**
	 * 页面分区名称
	 */
	@ApiModelProperty(value = "页面分区名称")
	@Column(name = "page_name", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '页面分区名称'")
	private String pageName;

	/**
	 * 字段ID
	 */
	@ApiModelProperty(value = "字段ID")
	@Column(name = "field_id", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '字段ID'")
	private String fieldId;

	/**
	 * 字段名称
	 */
	@ApiModelProperty(value = "字段名称")
	@Column(name = "field_name", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '字段名称'")
	private String fieldName;

	/**
	 * 页面分区版本号
	 */
	@ApiModelProperty(value = "页面分区版本号")
	@Column(name = "page_version", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '页面分区版本号'")
	private String pageVersion;

	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	@Column(name = "remark", columnDefinition = "varchar(200) DEFAULT NULL COMMENT '备注'")
	private String remark;

}
